/*
 * Copyright (c) 2005, 2014 vacoor
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.vacoor.nothing.security.logging;

public class LogWatcherConfig {
    private final boolean enabled;
    private final String loggingClass;
    private final int watcherSize;
    private final String watcherThreshold;

    public LogWatcherConfig(boolean enabled, String loggingClass, String watcherThreshold, int watcherSize) {
        this.enabled = enabled;
        this.loggingClass = loggingClass;
        this.watcherThreshold = watcherThreshold;
        this.watcherSize = watcherSize;
    }

    public boolean isEnabled() {
        return this.enabled;
    }

    public String getLoggingClass() {
        return this.loggingClass;
    }

    public int getWatcherSize() {
        return this.watcherSize;
    }

    public String getWatcherThreshold() {
        return this.watcherThreshold;
    }

    public ListenerConfig asListenerConfig() {
        return new ListenerConfig(this.watcherSize, this.watcherThreshold);
    }
}